<?php
declare (strict_types=1);

namespace app\admin\validate;

use think\Validate;

class Product extends Validate
{
    protected $rule = [
        'title' => 'require',
        'cate_1' => 'require',
        'cate_2' => 'require',
        'images' => 'require',
        'content' => 'require'
    ];

    protected $message = [
        'title.require' => '请输入商品名称',
        'cate_1.require' => '请选择一级分类',
        'cate_2.require' => '请选择二级分类',
        'images.require' => '请上传商品图片',
        'content.require' => '请输入商品详情'
    ];
}